package springboot.j2024_11_3;

public class UserInfo {
    public UserInfo(String name, int len, Integer age, Integer id) {
        this.name = name;
        this.len = len;
        this.age = age;
        this.id = id;
    }
    public UserInfo(){
         //加上无参构造方法即可
    }

    @Override
    public String toString() {
        return "UserInfo{" +
                "name='" + name + '\'' +
                ", len=" + len +
                ", age=" + age +
                ", id=" + id +
                '}';
    }

    private String name ;
    private int len ;
    private Integer age ;
    private Integer id ;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }


}
